package com.cqs.learning.spring.cloud.app.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * producer-service
 * Created by li on 20-3-1.
 */
//@FeignClient 中的name对应与其他服务的spring.application.name属性 url:是请求服务的url
//@FeignClient(url = "http://localhost:9092", name = "producer-service")
@FeignClient(name = "producer-service")
public interface IConsumer {
    @RequestMapping(value = "/producer/cnt", method = RequestMethod.GET)
    String cnt();
}
